@import './lib/const.less';

@rgb249: rgb(243,243,243);
@999: #999;
@rgb250: rgb(250,250,250);

.page{
    padding: 20px;
    overflow: hidden;
}
//修改插件样式
.unslider{
    position: relative;

    .banner{
        width: 100vw;
        
        ul{
            overflow: hidden;
        }

        img{
            width: 100%;
        }
    }

    .unslider-nav{
        position: absolute;
        width: 100%;
        bottom: 50px;
        z-index: 999;

        li{
            width: 12px;
            height: 12px;
            border-radius: 150px;
            border: 1px solid #aaa;

            &.unslider-active{
                background: #ddd;
            }
        }
    }
}

//内容切换模块
.tab-bar{
    position: relative;
    padding: 0;
    margin-bottom: 0;
    background: #ededed;
    text-align: center;

    li{
        padding: 20px 0;
        cursor: pointer;

        a{
            color: #3b3b3b;
            text-decoration: none;
        }

        &.active{
            background: #fff;
            
            > a{
                color: @finger;
            }
        }

        &:hover{
            > a{
                color: @finger;
            }
        }
    }
}

.content{
    h2.title{
        padding: 0 10px 10px 10px;
        margin-bottom: 40px;
        font-weight: 400;
        text-align: center;
        color: #333;
        border-bottom: 1px solid #333;
    }
}

#excessive{
    display: none;
    .survey{
        background: #f5f5f5 url('../img/index/survey-bg.png');
        background-size: cover;
        background-repeat: no-repeat;

        .ctr{
            width: 80%;
            min-height: 80%;
            background: url('../img/index/survey-1.png') center center;
            background-size: cover;

            .text{
                width: 55vw;
                height: 55vw;
                background: url('../img/index/survey-2.png') center center,
                            url('../img/index/survey-3.png') center center;
                background-size: cover;
            }
        }
    }

    .nestle{
        background: #fafafa;

        h2.title{
            margin-top: -40px;
        }
        
        .box{
            padding: 0;
            margin-top: 60px;
            text-align: center;
            list-style-type: none;
        }

        li{
            margin-bottom: 30px;
        }

        .icon-bg{
            margin: 0 auto;
            width: 100px;
            height: 100px;
            color: @finger;
        }

        .lf-web{
            font-size: 80px;
        }

        .icon-title{
            margin-top: 40px;
            font-size: 20px;
            font-weight: 400;
        }

        .text{
            margin: 0 auto;
            width: 65%;
            font-weight: 400;
            line-height: 1.8em;
            text-align: justify;
        }
    }

    .apply{
        img{
            width: 90%;
        }

        .l-componter{
            text-align: center;
        }

        .text{
            position: relative;
            width: 65%;
            font-size: 15px;
            line-height: 1.8em;
            text-align: justify;
            text-indent: 2em;
            color: #333;
            overflow: visible;

            &:before{
                position: absolute;
                content: '';
                top: -35px;
                left: -60px;
                width: 100%;
                height: 100%;
                background: url('../img/index/apply-2.png');
                background-repeat: no-repeat;
                background-size: 35%;
            }

            &:after{
                position: absolute;
                content: '';
                top: 100%;
                left: 55%;
                // bottom: 0;
                width: 100%;
                height: 100%;
                background: url('../img/index/apply-3.png');
                background-repeat: no-repeat;
                background-size: 50%;
            }
        }
    }

    .house{
        padding: 10px 0 0 0;
        font-size: 16px;
        background: @rgb249;

        h2.title{
            margin-top: 80px;
        }

        img{
            width: 100%;
        }

        .itd{
            text-align: justify;
        }

        ul.list{
            padding-left: 30px;
            line-height: 1.8em;
            color: #333;
        }

        ul.example{
            padding: 40px 20px;
            margin: 0;
            width: 100%;
            text-align: center;
            background: rgb(239,239,239);
            list-style-type: none;

            img{
                width: 60%;
            }

            p{
                margin: 10px 0 0 0;
                color:#777;
                font-weight: 400;
            }
        }
    }

    .mutual{
        text-align: center;
        font-size: 16px;

        .example{
            margin: 70px auto 0 auto;
            width: 80%;
        }
        
        ul.img{
            padding: 0;
            list-style-type: none;

            img{
                width: 60%;
            }

            p{
                margin-top: 15px;
            }
        }
        
    }

    .comprehensive{
        padding: 10px 0 0 0;
        background: #75cbeb;
        color: #fff;

        h2.title{
            margin-top: 90px;
            color: #fff;
            border:none;
        }

        p{
            margin-bottom: 80px;
            width: 70%;
            font-size: 20px;
            line-height: 1.8em;
            text-align: justify;
        }

        .bottom{
            width: 100%;
            height: 50%;
            background: #fff;
        }

        .left{
            width: 25%;
            background: url('../img/index/comprehensive-1.png') no-repeat center center;
            background-size: 100%;
        }

        .middle{
            background: url('../img/index/comprehensive-3.jpg') no-repeat center center;
            background-size: 100%;
        }

        .right{
            width: 25%;
            background: url('../img/index/comprehensive-2.png') no-repeat center center;
            background-size: 100%;
        }
    }

    .care{
        background: #fafafa;
        .ctr{
            padding: 40px;
            width: 100%;
        }

        img{
            width: 100%;
        }

        p{
            font-size: 16px;
            color: #888;
        }

        .left{
            position: relative;
        }

        .tv,.mobile{
            text-align: center;

            p{
                margin-top: 10px;
            }
        }

        .tv{
            margin: 0 auto;
            width: 80%;
        }

        .mobile{
            position: absolute;
            width: 20%;
            right: 5%;
            bottom: 0;
        }

        .r-text{
            height: 100%;
            
            p{
                margin: 10px auto;
                width: 80%;
                font-size: 16px;
                line-height: 2em;
                text-indent: 2em;
                color: #666;
                font-weight: 400;
            }
        }

    }
};

#provide{
    display: none;
    >div{
        padding: 40px;
    }
    .net{
        background: #f5f5f5;

        p{
            font-size: 16px;
            line-height: 1.5em;
            color: #888;
            text-indent: 2em;
        }
        img{
            margin-top: 20px;
        }
    }
    .institution{
        background: @rgb250;
        img{
            width: 80%;
        }
        p{
            text-indent: 2em;
            line-height: 2em;
            font-size: 16px;
            color: #999;
        }
    }
    .center{
        padding: 0;

        img{
            width: 100%;
        }
        p{
            width: 90%;
            font-size: 16px;
            line-height: 3em;
            text-indent: 2em;
            text-align: justify;
            color: @999;
        }
        .ctr{
            width: 90%;
        }
        .example{
            position: relative;
            margin-top: 30px;
            width: 100%;
            padding: 5%;
            text-align: center;
            background: @rgb249;

            &:after{
                position: absolute;
                margin-left: -20px;
                left: 50%;
                top: 40%;
                content: '\e6a5';
                width: 40px;
                height: 58px;
                font-family: 'lf-web';
                font-size: 40px;
                color: #75cbeb;
            }

            p{
                width: 100%;
                margin-top: 10px;
                text-align: center;
            }

            img{
                width: 100%;
            }
        }
    }
    .advantages{
        >ul{
            padding-left: 0;
            width: 90%;
            font-size: 16px;
        }
        li{
            margin-top: 80px;
        }
        .lf-web{
            font-size: 100px;
            color: rgb(117,203,235);
        }
        .icon{
            text-align: center;
        }
        .text{
            line-height: 2em;
            text-indent: 2em;
            text-align: justify;
        }

        h3.title{
            font-weight: 400;
            margin-bottom: 20px;
            text-indent: 0;
        }
    }
    .by-self{
        background: @rgb250;

        img{
            width: 100%;
        }

        p{
            margin-left: 10%;
            width: 90%;
            color:#999;
            text-indent: 2em;
            font-size: 16px;
            line-height: 2.5em;
        }
    }
    .feature{
        .ctr > div{
            text-align: center;
        }
        img{
            width: 60%;
        }

        h3{
            font-size: 18px;
            font-weight: 400;
        }

        p{
            margin: 0 auto;
            width: 80%;
            font-size: 16px;
            color: #999;
            line-height: 1.8em;
            text-align: justify;
        }
    }
}

#grogshop{
    display: none;
    .text{
        padding: 40px;
        color: #fff;
        font-size: 16px;
        text-indent: 2em;
        line-height: 2em;
        background: url('../img/index/grogshop-bg.jpg');
        background-size: cover;

        p{
            margin: 0 auto;
            width: 80%;
        }
    }

    .img{
        width: 100vw;
    }

    img{
        width: 100%;
    }
}

#finger,#oa{
    min-height: 80vh;

    >div{
        overflow: visible;
    }

    h2{
        padding-left: 60px;
        text-align: center;
        font-weight: 400;
        color: rgb(0, 102, 153);
    }
    img{
        width: 100%;
    }
    .bottom{
        position: relative;
        width: 100%;
        padding: 30px 60px 30px 60px;
        border-top: 1px solid #ddd;
        border-bottom: 1px solid #ddd;
        overflow: visible;
        text-align: justify;
        
        .text{
            font-size: 16px;
            text-indent: 2em;
            line-height: 1.8em;
        }

        .mobile{
            position: absolute;
            left: 55%;
            bottom: -7px;
        }
    }
}

#oa{
    h2{
        color: rgb(0,190,144);
    }
}
//手机端
@media (max-width: @screen-phone){
    h2.title{
        font-size: 20px;
    }

    .page{
        width: auto;
        height: auto;    
    }
    
    .unslider{
        .banner{
            width: 100%;
            height: auto;
        }
        .unslider-nav{
            bottom: 10px;
        }
    }

    .tab-bar{
        font-size: 12px;
    }

    #excessive{
        .survey{
            padding: 0;

            .ctr{
                width: 100%;
                min-height: 100%;

                .text{
                    width: 55vw;
                    height: 55vw;
                }
            }
        }

        .nestle{
            h2.title{
                margin-top: 20px;
            }

            .box{
                margin-top: 0;
            }

            .icon-title{
                font-size: 16px;
            }

            .text{
                font-size: 14px;
                width: 100%;
                line-height: 1.3em;
                text-align: justify;
            }
        }

        .apply{
            .text{
                margin-top: 30px;
                width: 100%;
                line-height: 1.9em;

                &:before,&:after{
                    background: none;
                }
            }
        }

        .house{
            h2.title{
                margin-top: 20px;
            }

            .itd{
                padding: 0 20px;
            }

            ul.list{
                padding-left: 20px;
            }

            ul.example{
                
                >li{
                    margin: 15px 0;
                }

                img{
                    width: 100%;
                }
            }
        }

        .mutual{
            ul.img{
                img{
                    margin-top: 20px;
                    width: 90%;
                }
            }
        }

        .comprehensive{
            h2.title{
                margin-top: 20px;
            }
            p{
                width: 85%;
            }
            .bottom{
                display: none;
            }
        }

        .care{
            .ctr{
                display: block;
                padding: 20px;
                width: 100%;
            }
            .tv{
                width: 100%;
            }
            .mobile{
                width: 25%;
                right: 0;
                bottom: 0;
            }
            .tv,.mobile{
                >p{
                    font-size: 12px;
                    color: #666;
                }
            }
            .r-text{
                padding: 0;
                margin-top: 20px;
                height: 100%;
                
                p{
                    margin: 10px auto;
                    width: 100%;
                    line-height: 1.5em;
                }
            }

        }
    } 

    #provide{
        .ctr{
            display: block !important;
        }
        >div{
            padding: 20px;
        }
        .net{
            img{
                width: 120%;
            }
        }
        .institution{
            img{
                width: 100%;
            }
            .ctr{

                p{
                    margin-top: 20px;
                }
            }
        }

        .center{
            p{
                width: 100%;
                line-height: 1.8em;
            }
            .example{
                display: block;

                >div:last-child{
                    margin-top: 80px;
                }

                &:after{
                    top: 50%;
                    margin-top: -40px;
                    transform: rotateZ(90deg);
                }
            }
        }
        .advantages{
            ul,li{
                display: block;
            }
            .lf-web{
                display: none;
            }
            h3.title{
                text-align: center;
            }
        }
        .by-self{
            p{
                width: 100%;
                margin: 0 0 30px 0;
            }
        }
    }

    #grogshop{
        .text{
            font-size: 14px;
            line-height: 1.6em;
            padding: 20px;

            p{
                margin: 0 auto;
                width: 100%;
            }
        }
    }

    #finger{
        display: none;
    }

    #finger,#oa{
        display: block;
        h2{
            padding-left: 15px;
            margin-bottom: 30px;
        }
        .bottom{
            display: block;
            padding: 0 20px;
            border:none;

            >div{
                margin-top: 20px;
            }

            img{
                width: 80%;
            }

            .mobile{
                position: static;
            }

            .mobile,.code{
                text-align: center;
            }
        }
    }
};

//ipad 竖
@media (min-width: @screen-phone) and (max-width: @screen-pad){
    #excessive{
        .nestle{
            .text{
                margin: 0 auto;
                font-size: 14px;
                width: 80%;
                line-height: 1.8em;
                text-align: justify;
            }
        }
        .apply{
            // .apply-ctr{
            //     overflow: visible;
            // }
            .text{
                margin-top: 0;

                &:before,&:after{
                    background: none;
                }
            }
        }
        .house{
            ul.example{
                list-style-type: none;
            
                img{
                    width: 80%;
                }
            }
        }
    } 
};

//ipad 横 以及 小屏PC
@media(min-width: @screen-pad) and (max-width: @screen-pc){
    #excessive{
        .apply{
            // .apply-ctr{
            //     overflow: visible;
            // }
            .text{
                width: 80%;
                margin-top: 0;

                &:before,&:after{
                    background: none;
                }
            }
        }
        .house{
            .itd{
               width: 85%;
            }

            ul.example{
                list-style-type: none;
            
                img{
                    width: 100%;
                }
            }
        }
        .comprehensive{
            .bottom{
                height: 40%;
            }
            
        }
    }
};

//PC
@media (min-width: @screen-pad){
    .page{
        width: 100vw;
        height: 100vh;
        box-sizing: border-box;
    }

    .tab-bar{
        margin-top: -40px;
    }
    #excessive{
        .apply{
            .apply-ctr{
                display: flex;
                align-items: stretch;
            }
        }
    }
    #finger,#oa{
        display: flex;
    }

}
